# This code is part of the MWP System
# Copyright (c) 2012 Benjamin Lubin (blubin@bu.com) 
# Published under and subject to the GPLv2 license available at http://www.gnu.org/licenses/gpl-2.0.html

'''
Created on Dec 14, 2012
@author: blubin
'''

from frontend.roleApplication import RoleApplication;
from frontend.form import Type;

class TrainerApplication(RoleApplication):
    """ The Customer User Interface """

    def __init__(self):
        super(TrainerApplication, self).__init__("PuppyService3", "Trainer");
        self.register_transition_step("ReceiveSchedule", self.receive_schedule_form_creator, name_fields=["sequence", "FirstName", "LastName", "Location", "DesiredTime"])

    def receive_schedule_form_creator(self, stepname, form):
        form.add_task_label(fields=["FirstName", "LastName", "Location", "DesiredTime"]) 
        form.add_field(Type.BOOLEAN, "DogsLetOutAndReturned", labeltext="Order Complete?");
    
if __name__ == '__main__':
    app = TrainerApplication();
    app.MainLoop();